Exercise 10.15

A new web form has been created, NewPolicyHolderAndPolicy.aspx to demonstrate one possible approach.  See

NewPolicyHolderAndPolicy.aspx

The code behind file for this web form makes the required database updates using lines such as:

databaseError.Text = "";
insuranceDB.policyholders.InsertOnSubmit(ph);
insuranceDB.SubmitChanges();
p.policyHolderID = ph.policyholderID;
insuranceDB.policies.InsertOnSubmit(p);
insuranceDB.SubmitChanges();